package me.firstapp.spi.shop;

import me.firstapp.common.json.SingleObject;
import me.firstapp.common.module.shop.JsonShoppingCart;

public interface ShoppingCartService {

	/**
	 * 更新购物车
	 * 
	 * @param shoppingCartId
	 *            购物车id
	 * @param params
	 *            格式：[{"productId":1, "productSkuRelId":1
	 *            "counts":1},{"productId":1,"productSkuRelId":1, "counts":1}]
	 */
	SingleObject<Object> updateShoppingCart(Long shoppingCartId, String params);

	/**
	 * 调用获取用户购物车接口
	 * 
	 * @param memberId
	 * @return
	 */
	SingleObject<JsonShoppingCart> findMemberShoppingCart(Long memberId);

	/**
	 * 调用删除购物车商品接口
	 * 
	 * @param shoppingCartId
	 * @param productIds
	 * @param productSkuRelIds
	 * @return
	 */
	SingleObject<Object> deleteShoppingCartProduct(Long shoppingCartId, String productIds, String productSkuRelIds);
}
